<?php
/**
 * 
 */
use Fox\Common\Customer;
use Fox\Html\DropList;
use Fox\Html\CheckBox;
use Fox\MaterialManagement\Material\Type;
use Fox\Generator;
$block = new Fox\Html\Block("bHeader",Msg(Customer::BUNDLE_NAME,6));
$block->add(new Fox\Html\Input("materialid"))->input(false);
$finder = new Type();
$types = $finder->find(new Fox\Dao\SqlFragment("language = ? AND active = ? ",
						array(Xview::instance()->language(),1)));
$block->add(new DropList(array("material_type","type"),true,false,true))
		->options($types,Generator::useAttribute('type'),Generator::useAttribute('label'));
$block->add(new Fox\Html\Input(array("material_label","label"),true));
$block->add(new CheckBox("active",true));
return $block;